package com.example.zkfx.room

import android.app.Application
import androidx.room.Room

class AppDbUtils {
    companion object{
        private lateinit var appDB: AppDB

        fun init(application: Application){
            appDB = Room.databaseBuilder(application, AppDB::class.java,"zkfx.db")
                .allowMainThreadQueries()
                .build()
        }

        fun getDb() = appDB
    }
}